package com.bestillet.kyllingogco;

import android.os.Parcel;
import android.os.Parcelable;

public class Shop implements Parcelable {
	private String name, city, zipcode, address, rabat, logo, hours, orders, smiley, closed, picture;
	
	private int idx, version;
	
	public Shop(int idx, int version, String name, String city, String zipcode, String address, String rabat, String logo, String hours, String orders, String smiley, String closed, String picture) {
		this.idx = idx;
		this.version = version;
		this.name = name;
		this.city = city;
		this.zipcode = zipcode;
		this.address = address;
		this.rabat = rabat;
		this.logo = logo;
		this.hours = hours;
		this.orders = orders;
		this.smiley = smiley;
		this.closed = closed;
		this.picture = picture;
	}

	public Shop() { }
	
	public int getIdx() {
		return idx;
	}

	public void setIdx(int idx) {
		this.idx = idx;
	}

	public int getVersion() {
		return version;
	}

	public void setVersion(int version) {
		this.version = version;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getZipcode() {
		return zipcode;
	}

	public void setZipcode(String zipcode) {
		this.zipcode = zipcode;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getRabat() {
		return rabat;
	}

	public void setRabat(String rabat) {
		this.rabat = rabat;
	}

	public String getLogo() {
		return logo;
	}

	public void setLogo(String logo) {
		this.logo = logo;
	}

	public String getHours() {
		return hours;
	}

	public void setHours(String hours) {
		this.hours = hours;
	}

	public String getOrders() {
		return orders;
	}

	public void setOrders(String orders) {
		this.orders = orders;
	}

	public String getSmiley() {
		return smiley;
	}

	public void setSmiley(String smiley) {
		this.smiley = smiley;
	}

	public String getClosed() {
		return closed;
	}

	public void setClosed(String closed) {
		this.closed = closed;
	}

	public String getPicture() {
		return picture;
	}

	public void setPicture(String picture) {
		this.picture = picture;
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel out, int flags) {
		out.writeInt(idx);
		out.writeInt(version);
		out.writeString(name);
		out.writeString(city);
		out.writeString(zipcode);
		out.writeString(address);
		out.writeString(rabat);
		out.writeString(logo);
		out.writeString(hours);
		out.writeString(orders);
		out.writeString(smiley);
		out.writeString(closed);
		out.writeString(picture);
	}
	
	public static final Parcelable.Creator<Shop> CREATOR = new Parcelable.Creator<Shop>() {
		@Override
		public Shop createFromParcel(Parcel in) {
			return new Shop(in);
		}

		@Override
		public Shop[] newArray(int size) {
			return new Shop[size];
		}
	};
	
	private Shop(Parcel in) {
		idx = in.readInt();
		version = in.readInt();
		name = in.readString();
		city = in.readString();
		zipcode = in.readString();
		address = in.readString();
		rabat = in.readString();
		logo = in.readString();
		hours = in.readString();
		orders = in.readString();
		smiley = in.readString();
		closed = in.readString();
		picture = in.readString();
	}
}